﻿using _08_静态构造函数;
using System;

namespace _09_验证属性值的有效性
{
    class Program
    {
        static void Main(string[] args)
        {
            User zoomla = new User();

            try
            {
                zoomla.UserName = "fewwefewfewfewfefwtom";
                zoomla.Password = "******";
            }
            catch (Exception ex)
            {

                Console.WriteLine($"错误：{ex.Message}。");
            }
        }
    }
}
